class CreatePages < ActiveRecord::Migration
  def self.up
    create_table :pages do |t|
      t.integer :number
      t.references :article
      # For paperclip
      t.column :page_image_file_name, :string
      t.column :page_image_content_type, :string
      t.column :page_image_file_size, :integer
      t.column :page_image_updated_at, :datetime

      t.timestamps
    end
  end

  def self.down
    drop_table :pages
  end
end
